package com.dragon.logical.service.auth;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.repository.entity.Role;

import java.util.List;

/**
 * <p>
 * 角色表 服务类
 * </p>
 *
 * @author sy
 * @since 2023-06-12
 */
public interface RoleService extends IService<Role> {

    List<Role> getRoleList(String name);

    void addRole(Role convert);

    void updateRole(Role convert);

    void deleteRole(Integer id);

    void deleteRoles(List<Integer> ids);

    void rolePermission(Integer roleId, Integer dateType,String menuIds,String departmentIds,String modIds);

    List<Integer> selectMenuList(Integer roleId);

    List<Integer> selectDepartmentList(Integer roleId);
}
